package com.apple.mybatis.mapper;

import com.apple.mybatis.entity.Role;
import com.apple.mybatis.params.PageParams;
import com.apple.mybatis.params.RoleParams;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    public Role getRole(Long id);

    public int insertRole(Role role);

    public int deleteRole(Long id);

    public int updateRole(Role role);

    public List<Role> findRoles(String roleName);

    public List<Role> findByMix(@Param("params") RoleParams roleParams, @Param("page") PageParams pageParams);

}
